{include file="public/header" /}
</head>
<body>
<form class="layui-form layui-form-pane" action="" style="width: 80%;margin: 20px auto;">
    <input type="hidden" name="keyword_id" value="{$dataInfo.keyword_id|default=0}">
    <div class="layui-form-item">
        <label class="layui-form-label">专题</label>
        <div class="layui-input-block">
            <input type="text" name="keyword_name"  required lay-verify="required"  placeholder="请输入专题" autocomplete="off" class="layui-input" value="{$dataInfo.keyword_name|default=''}">
        </div>
    </div>
    <div class="layui-form-item" pane>
        <label class="layui-form-label">是否显示</label>
        <div class="layui-input-block">
            {notempty name="RadioIs"}
            {volist name="RadioIs" id="vo"}
            <input type="radio" name="is_display" value="{$key}" title="{$vo}" {present name="dataInfo.is_display"}{eq name="dataInfo.is_display" value="$key"}checked{/eq}{else/}{eq name="key" value="0"}checked{/eq}{/present}>
            {/volist}
            {/notempty}
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">SEO专题</label>
        <div class="layui-input-block" >
            <textarea name="seo_keyword" placeholder="请输入SEO专题" class="layui-textarea">{$dataInfo.seo_keyword|default=''}</textarea>
        </div>
    </div>
    <div class="layui-form-item layui-form-text">
        <label class="layui-form-label">SEO描叙</label>
        <div class="layui-input-block">
            <textarea name="seo_description" placeholder="请输入SEO描叙" class="layui-textarea">{$dataInfo.seo_description|default=''}</textarea>
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" type="button" lay-submit lay-filter="formDemo">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
<script>

    layui.use('form', function(){
        var form = layui.form;
        form.render();
        //监听提交
        form.on('submit(formDemo)', function(data){
            post_sub("{:url('Informations/keywordAdd')}",data.field);
            return false;
        });
    });
</script>
</html>